﻿using Newtonsoft.Json;
using SqlSugar;

namespace AnyLink.Domain.Entities.Auditing
{
    /// <summary>
    /// 仅包含创建者信息的审计对象
    /// </summary>
    public class CreateAuditedObject : HasCreateTime,ICreateBy<string>
    {
        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnDescription = "创建人",ColumnName ="create_by", ColumnDataType = "VARCHAR(64)", IsNullable = true,IsOnlyIgnoreUpdate =true)]
        [JsonProperty(propertyName: "createBy")]
        public virtual string CreateBy { get; set; }
    }
}
